#ifndef MESURERESULTPAGECHARTS_H
#define MESURERESULTPAGECHARTS_H
#include <QtCharts>
#include "qchart.h"
#include <QtCharts/QChartView>
#include <QtCharts/QPieSeries>
#include <QtCharts/QPieSlice>
#include <QtCharts/QAbstractBarSeries>
#include <QtCharts/QPercentBarSeries>
#include <QtCharts/QStackedBarSeries>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarSet>
#include <QtCharts/QLineSeries>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QAreaSeries>
#include <QtCharts/QLegend>
#include <QtCharts/QBarCategoryAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QChartGlobal>

class MesureResultPageCharts
{
public:
    MesureResultPageCharts();
    ~MesureResultPageCharts();
    QChart *CreateLineChart_HRV();
    void setHRVData(QList<int>rr);

    QChart *CreateLineChart_PSD();
    void setPSDData(QList<double>f,QList<double>psd);

    QChart* CreateLineChart_PPG();
    void setPPGData(QList<double>ppg);

    QChart* CreateLineChart_aPPG();
    void setaPPGData(QList<double>appg);



private:
    QLineSeries *Series_HRV,*Series_HRV_UP,*Series_HRV_Down;
    QLineSeries *Series_psd;
    QLineSeries *Series_ppg;
    QLineSeries *Series_appg;

    QValueAxis *xAxis_HRV;
    QValueAxis *yAxis_HRV;
    QValueAxis *xAxis_ppg;
    QValueAxis *yAxis_ppg;
    QValueAxis *xAxis_appg;
    QValueAxis *yAxis_appg;


    void InitialAxis_Chart_HRV();

    QValueAxis *xAxis_psd;
    QValueAxis *yAxis_psd;

    void InitialAxis_Chart_PSD();
    void InitialAxis_Chart_PPG();
    void InitialAxis_Chart_aPPG();



};

#endif // MESURERESULTPAGECHARTS_H
